import 'dart:convert';
/// code : 0
/// data : {"cardId":null}
/// msg : ""
/// serverTime : "0"

ValityKeyData valityKeyDataFromJson(String str) => ValityKeyData.fromJson(json.decode(str));
String valityKeyDataToJson(ValityKeyData data) => json.encode(data.toJson());
class ValityKeyData {
  ValityKeyData({
      int? code, 
      Data? data, 
      String? msg, 
      String? serverTime,}){
    _code = code;
    _data = data;
    _msg = msg;
    _serverTime = serverTime;
}

  ValityKeyData.fromJson(dynamic json) {
    _code = json['code'];
    _data = json['data'] != null ? Data.fromJson(json['data']) : null;
    _msg = json['msg'];
    _serverTime = json['serverTime'];
  }
  int? _code;
  Data? _data;
  String? _msg;
  String? _serverTime;
ValityKeyData copyWith({  int? code,
  Data? data,
  String? msg,
  String? serverTime,
}) => ValityKeyData(  code: code ?? _code,
  data: data ?? _data,
  msg: msg ?? _msg,
  serverTime: serverTime ?? _serverTime,
);
  int? get code => _code;
  Data? get data => _data;
  String? get msg => _msg;
  String? get serverTime => _serverTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = _code;
    if (_data != null) {
      map['data'] = _data?.toJson();
    }
    map['msg'] = _msg;
    map['serverTime'] = _serverTime;
    return map;
  }

}

/// cardId : null

Data dataFromJson(String str) => Data.fromJson(json.decode(str));
String dataToJson(Data data) => json.encode(data.toJson());
class Data {
  Data({
      dynamic cardId,}){
    _cardId = cardId;
}

  Data.fromJson(dynamic json) {
    _cardId = json['cardId'];
  }
  dynamic _cardId;
Data copyWith({  dynamic cardId,
}) => Data(  cardId: cardId ?? _cardId,
);
  dynamic get cardId => _cardId;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['cardId'] = _cardId;
    return map;
  }

}